<#include "/inc/macro.ftl"/>
<#assign freeMarkerMethod = "com.zz.price.util.FreeMarkerMethod"?new()/>
<table class="table table-striped table-hover table-bordered text-center">
    <thead>
    <tr>
        <th>序号</th>
        <th>类别</th>
        <th>名称</th>
        <th>型号</th>
        <th>单位</th>
        <th>录入时间</th>
        <th>录入人</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
        <#if pageInfo?? && pageInfo.list?? && pageInfo.list?size gt 0>
            <#list pageInfo.list as item>
            <tr>
                <td>${item.id!''}</td>
                <td>${item.category!''}</td>
                <td>${item.name!''}</td>
                <td>${item.model!''}</td>
                <td>${item.unit!''}</td>
                <td>${freeMarkerMethod('formatDateTimeSecond',"${item.createTime!''}")}</td>
                <td>${item.creator!''}</td>
                <td>
                    <button class="btn btn-danger delTabListBtn" itemId="${item.id!''}">删除</button>
                </td>
            </tr>
            </#list>
        <#else>
            <tr>
                <td colspan="20">暂无数据</td>
        <tr>
        </#if>
    </tbody>
</table>
<#if pageInfo??>
    <@pageNation data = pageInfo />
</#if>